package de.szut.ita13sommerfeld.blockadventure.level;


public class LevelObject {
	
	public static final LevelObject BLOCK_BOUNDS = new LevelObject(255,255,255);
	public static final LevelObject BLOCK_DIRT = new LevelObject(64,64,64);
	public static final LevelObject BLOCK_GRASS = new LevelObject(96,96,96);
	public static final LevelObject BLOCK_SAND = new LevelObject(255,128,64);
	public static final LevelObject BLOCK_SPAWNPOINT = new LevelObject(255,0,0);
	public static final LevelObject BLOCK_TARGET = new LevelObject(255,0,255);
	public static final LevelObject BLOCK_COINCOLLECTOR = new LevelObject(255,5,242);
	public static final LevelObject BLOCK_MISSILE_LAUNCHER = new LevelObject(255,33,0);
	
	public static final LevelObject PLAYER = new LevelObject(0,0,255);

	private int red;
	private int green;
	private int blue;
	
	
	public LevelObject(int red, int green, int blue) {
		this.red = red;
		this.green = green;
		this.blue = blue;
	}
	
	
	public static boolean is(LevelObject lvlA, LevelObject lvlB) {
		if(lvlA.getRed() == lvlB.getRed() && lvlA.getGreen() == lvlB.getGreen() && lvlA.getBlue() == lvlB.getBlue()) {
			return true;
		}
		return false;
	}

	public int getRed() {
		return red;
	}


	public int getGreen() {
		return green;
	}


	public int getBlue() {
		return blue;
	}
	
}
